package com.qc.sys.controller;


import com.baomidou.mybatisplus.extension.api.ApiController;
import com.qc.sys.common.DataGridView;
import com.qc.sys.common.ResultObj;
import com.qc.sys.service.SysLoginfoService;
import com.qc.sys.vo.LogInfoVo;
import io.swagger.models.auth.In;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * (SysLoginfo)表控制层
 *
 * @author AltmanQccc
 * @since 2020-08-27 14:55:41
 */
@CrossOrigin
@RestController
@RequestMapping("loginfo")
public class SysLoginfoController extends ApiController {
    /**
     * 服务对象
     */
    @Resource
    private SysLoginfoService loginfoService;

    @RequestMapping("loadAllLoginfo")
    public Object loadAllLoginfo(LogInfoVo loginfoVo){
        return this.loginfoService.queryAllLogInfo(loginfoVo);
    }

    @RequestMapping("deleteLoginfo")
    public ResultObj deleteLoginfo(Integer id){
        return this.loginfoService.removeLoginfoByid(id);
    }

    @RequestMapping("batchDeleteLoginfo")
    public ResultObj batchDeleteLoginfo(Integer[] ids){
        return this.loginfoService.batchDeleteLoginfoByid(ids);
    }

}